package com.ws.testProxy;

/**
 * @author 王硕
 * @version jdk21
 * @className GoodsServiceProxy
 * @description
 * @date 2024/12/2 17:46
 */
public class GoodsServiceProxy implements GoodsService{
    GoodsService targetService;

    public void setGoodsService(GoodsService targetService) {
        this.targetService = targetService;
    }

    @Override
    public void qurey() {
        long begin = System.currentTimeMillis();
        targetService.qurey();
        System.out.println("耗时:" + (System.currentTimeMillis() - begin));
    }
}
